package com.sakura.probe.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * <p>
 *
 * </p>
 *
 * @author Sakura
 * @since 2020-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pb_topic_img")
@ApiModel(value="TopicImg对象", description="帖子图片的存储信息")
public class TopicImg {
    private Long topicId;
    @TableId(value = "topic_img_id", type = IdType.AUTO)
    private Integer topicImgId;
    private String imgAddr;
    private String imgDesc;
    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date lastEditTime;

    public TopicImg() {

    }

    public TopicImg(Long topicId, String imgAddr) {
        this.topicId = topicId;
        this.imgAddr = imgAddr;
    }
}
